#OBJS specifies which files to compile as part of the project
OBJS = drench-em.cpp

#CC specifies which compiler we're using
CC = g++

#COMPILER_FLAGS specifies the additional compilation options we're using
#  the '/usr/local/include/SDL2' is for the RaspberryPi builds.
COMPILER_FLAGS = -I /usr/include/SDL2 -I /usr/local/include/SDL2

#LINKER_FLAGS specifies the libraries we're linking against
LINKER_FLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf

#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = drench-em



all: drench-em

drench-em: $(OBJS) plate.png
	$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)

plate.png: plate.svg
	convert plate.svg plate.png
